package com.example.demo.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class SSWDRoom {

    //房间号
    private String roomID;

    //房主
    private String roomOwner;

    //玩家
    private List<String> players = new ArrayList<>();

    //准备玩家
    private List<String> readPlayers = new ArrayList<>();

    //游戏状态
    private String status = "未开始";

    //游戏轮数
    private int round = 0;

    //游戏词语列表
    private List<String> wordList = new ArrayList<>();

    //描述词语列表
    private Map<String,String> cacheWordMap = new HashMap<>();


    @Override
    public String toString() {
        return "房间号:"+roomID+"\n" +
                "房主:"+roomOwner+"\n" +
                "玩家数:"+players.size()+"\n" +
                "准备玩家:"+readPlayers.size()+"\n" +
                "游戏状态:"+status+"\n" +
                "--------------------------下方内容只有您可以看到\n";
    }

}
